is_nan
Determine whether it is a legal value
is_nan() determines whether it is a legal value.
<?php echo is_nan ( 200 ) ; echo is_nan ( acos ( 1.01 ) ) ; ?>
Try it yourself
is_nan ( x )
| parameter | describe |
|---|---|
| x | Required. Specify the value to be checked. |
If x is "non-numeric", such as the result of acos(1.01), returns true.